package com.huarun.module.sys.bean;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.huarun.common.BaseBean;

public class ReturnToWorkUser extends BaseBean implements Serializable {

	private String userName;

	private String mobile;

	private Integer age;

	private String roleCode;

	private String gender;

	private String companyName;

	private String buildingLocation;

	private String workFlag;

	private Date createDate;

	private String createBy;

	private Date lastUpdateDate;

	private String lastUpdateBy;

	private String projectId;

	private String qrcode;

	public String getQrcode() {
		return qrcode;
	}

	public void setQrcode(String qrcode) {
		this.qrcode = qrcode;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	private static final long serialVersionUID = 1L;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile == null ? null : mobile.trim();
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode == null ? null : roleCode.trim();
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender == null ? null : gender.trim();
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName == null ? null : companyName.trim();
	}

	public String getBuildingLocation() {
		return buildingLocation;
	}

	public void setBuildingLocation(String buildingLocation) {
		this.buildingLocation = buildingLocation == null ? null : buildingLocation.trim();
	}

	public String getWorkFlag() {
		return workFlag;
	}

	public void setWorkFlag(String workFlag) {
		this.workFlag = workFlag == null ? null : workFlag.trim();
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy == null ? null : createBy.trim();
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public String getLastUpdateBy() {
		return lastUpdateBy;
	}

	public void setLastUpdateBy(String lastUpdateBy) {
		this.lastUpdateBy = lastUpdateBy == null ? null : lastUpdateBy.trim();
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		ReturnToWorkUser other = (ReturnToWorkUser) that;
		return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
				&& (this.getUserName() == null ? other.getUserName() == null
						: this.getUserName().equals(other.getUserName()))
				&& (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
				&& (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
				&& (this.getRoleCode() == null ? other.getRoleCode() == null
						: this.getRoleCode().equals(other.getRoleCode()))
				&& (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
				&& (this.getCompanyName() == null ? other.getCompanyName() == null
						: this.getCompanyName().equals(other.getCompanyName()))
				&& (this.getBuildingLocation() == null ? other.getBuildingLocation() == null
						: this.getBuildingLocation().equals(other.getBuildingLocation()))
				&& (this.getWorkFlag() == null ? other.getWorkFlag() == null
						: this.getWorkFlag().equals(other.getWorkFlag()))
				&& (this.getCreateDate() == null ? other.getCreateDate() == null
						: this.getCreateDate().equals(other.getCreateDate()))
				&& (this.getCreateBy() == null ? other.getCreateBy() == null
						: this.getCreateBy().equals(other.getCreateBy()))
				&& (this.getLastUpdateDate() == null ? other.getLastUpdateDate() == null
						: this.getLastUpdateDate().equals(other.getLastUpdateDate()))
				&& (this.getLastUpdateBy() == null ? other.getLastUpdateBy() == null
						: this.getLastUpdateBy().equals(other.getLastUpdateBy()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
		result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
		result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
		result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
		result = prime * result + ((getRoleCode() == null) ? 0 : getRoleCode().hashCode());
		result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
		result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
		result = prime * result + ((getBuildingLocation() == null) ? 0 : getBuildingLocation().hashCode());
		result = prime * result + ((getWorkFlag() == null) ? 0 : getWorkFlag().hashCode());
		result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
		result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
		result = prime * result + ((getLastUpdateDate() == null) ? 0 : getLastUpdateDate().hashCode());
		result = prime * result + ((getLastUpdateBy() == null) ? 0 : getLastUpdateBy().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(getId());
		sb.append(", userName=").append(userName);
		sb.append(", mobile=").append(mobile);
		sb.append(", age=").append(age);
		sb.append(", roleCode=").append(roleCode);
		sb.append(", gender=").append(gender);
		sb.append(", companyName=").append(companyName);
		sb.append(", buildingLocation=").append(buildingLocation);
		sb.append(", workFlag=").append(workFlag);
		sb.append(", createDate=").append(createDate);
		sb.append(", createBy=").append(createBy);
		sb.append(", lastUpdateDate=").append(lastUpdateDate);
		sb.append(", lastUpdateBy=").append(lastUpdateBy);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}
}
